$(document).ready(function(){
	index_js.init();
	index_js.bind();
	index_js.init_nav();
});
var index_js = {};
index_js.bind = function(){
	
}
index_js.init = function(){
}
/**
 * 初始化可滚动导航栏
 */
index_js.init_nav = function(){
	//先确定swiper-slide的宽度
	var $divs = $("#swiper-slide > div");
	var max_width = 0;
	$divs.each(function(){
		max_width += $(this).width();
	});
	$("#swiper-slide").width(max_width);
	var mySwiper = new Swiper('#swiper-container', {
		scrollContainer: true,
	})
}
